package com.wzl;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 启动类
 *
 * @author weizhongli
 * @since 2022-08-28 21:09
 */
@Slf4j
@SpringBootApplication
@MapperScan({
        "com.wzl.mapper"
})
public class MyBatisServiceApplication {

    public static void main(String[] args) {

        try{
            SpringApplication.run(MyBatisServiceApplication.class, args);
            log.info("***********MyBatis服务启动成功***********");
        }catch (Exception e){
            log.error("", e);
            log.error("***********MyBatis服务启动失败***********");
        }

    }

}